<%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>
.::HERRAMIENTA DE CALCULADORA::.
</title>
        <link rel="stylesheet" type="text/css" href="plantilla.css" media="all"/>
		<link rel="stylesheet" href="tabs.css" type="text/css" media="all">

		<script src="scriptaculous/lib/prototype.js" type="text/javascript"></script>
		<script src="scriptaculous/src/effects.js" type="text/javascript"></script>
		<script type="text/javascript" src="validation.js"></script>	
                <script type="text/javascript" src="scripts.js" language="javascript"></script>
<!-- plantilla de formularios -->

<script type="text/javascript" src="plantilla2/scripts/wufoo.js"></script>
<!-- CSS -->
<link rel="stylesheet" href="plantilla2/css/structure.css" type="text/css" />
<link rel="stylesheet" href="plantilla2/css/form.css" type="text/css" />
<link rel="stylesheet" href="plantilla2/css/theme.css" type="text/css" />
</head>

<body>

 <div id="header_container">
         <div id="header_logo">
         	<img src="imagenes/logo.gif"  width="50%" height="100%"/>
         </div>
        <div id="header_titulo">
        </div>
	</div>

<form name="f1" id="f1" action="redireccion3.asp" method="post">
<div id="mitad">
 <div id="balance">
	 <fieldset> 
     <legend  style="color:#1078B8;">Balance General de Microempresas</legend>
<table>
  <tr>
    <td class="desc1" colspan="2">Activo</td>
    <td class="desc1" colspan="2">Pasivo</td>
  </tr>
  <tr>
    <td class="desc1"  colspan="2">Activo Circulante</td>
    <td class="desc1" colspan="2">Pasivo Corto Plazo</td>
  </tr>
  <tr>
    <td colspan="2">&nbsp;</td>
    <td class="desc">Cuentas por pagar a Proveedores:<span class="req">*</span></td>
    <td><input name="p_suma_13"  type="text" id="p_suma_13" onKeyUp="javascript:sumas($('f1'),'p');" value="0" class="required field text large" title="Ingrese la cantidad"></td>
  </tr>
  <tr>
    <td class="desc">Caja:<span class="req">*</span></td>
    <td><input name="ac_suma_1"  type="text" id="ac_suma_1" onKeyUp="javascript:sumas($('f1'),'ac');" value="0" class="required field text large" title="Ingrese la cantidad" /></td>
    <td class="desc">Otras cuentas por Pagar:<span class="req">*</span></td>
    <td><input name="p_suma_14"  type="text" id="p_suma_14" onKeyUp="javascript:sumas($('f1'),'p'); " value="0" class="required field text large" title="Ingrese la cantidad"></td>
  </tr>
  <tr>
    <td class="desc">Bancos:<span class="req">*</span></td>
    <td><input name="ac_suma_2"  type="text" id="ac_suma_2"  onKeyUp="javascript:sumas($('f1'),'ac'); " value="0"  class="required field text large" title="Ingrese la cantidad"></td>
    <td class="desc">Otros Pr&eacute;tamos Bancarios: <span class="req">*</span> </td>
    <td> <input name="p_suma_15" type="text" id="p_suma_15" onKeyUp="javascript:sumas($('f1'),'p'); " value="0" class="required field text large" title="Ingrese la cantidad"></td>
  </tr>
  <tr>
    <td class="desc">Cuentas por Cobrar: <span class="req">*</span> </td>
    <td><input name="ac_suma_3" type="text" id="ac_suma_3"  onKeyUp="javascript:sumas($('f1'),'ac'); " value="0" class="required field text large" title="Ingrese la cantidad"></td>
    <td class="desc">Saldo enConfianza: <span class="req">*</span> </td>
    <td><input name="p_suma_16" type="text" id="p_suma_16" onKeyUp="javascript:sumas($('f1'),'p'); " value="0" class="required field text large" title="Ingrese la cantidad"></td>
  </tr>
  <tr>
    <td class="desc">Inventarios: <span class="req">*</span> </td>
    <td><input name="ac_suma_4" type="text" id="ac_suma_4"  onKeyUp="javascript:sumas($('f1'),'ac');  " value="0" class="required field text large" title="Ingrese la cantidad"></td>
    <td colspan="2">&nbsp;</td>
  </tr>
  <tr>
    <td class="desc1">Total Activo Circulante:</td>
    <td><input class="desc1" name="ac_resultado" type="text" id="ac_resultado" value="0" disabled="disabled"></td>
    <td class="desc1">Total Pasivo Corto Plazo:</td>
    <td><input class="desc1" name="p_resultado" type="text" id="p_resultado" value="0" disabled="disabled"></td>
  </tr>
  <tr>
    <td class="desc1" colspan="2">Activo Fijo</td>
    <td class="desc1">Total Pasivo Largo Plazo: <span class="req">*</span> </td>
    <td><input class="desc1" name="plp_18" type="text" id="plp_18" value="0" onkeyup="javascript:" class="required field text large" title="Ingrese la cantidad"></td>
  </tr>
  <tr>
    <td class="desc">Maquinaria y Equipo:<span class="req">*</span></td>
    <td><input name="af_suma_6"  type="text" id="af_suma_6"   onKeyUp="javascript:sumas($('f1'),'af'); " value="0" class="required field text large" title="Ingrese la cantidad"></td>
    <td class="desc1">Total Pasivo:</td>
    <td><input class="desc1" name="resultado2" type="text" id="resultado2" value="0" disabled="disabled"></td>
  </tr>
  <tr>
    <td class="desc">Muebles y Enseres:<span class="req">*</span></td>
    <td><input name="af_suma_7"  type="text" id="af_suma_7"  onKeyUp="javascript:sumas($('f1'),'af'); " value="0" class="required field text large" title="Ingrese la cantidad"></td>
    <td class="desc1">Total Capital:</td>
    <td><input class="desc1" name="resultado3" type="text" id="resultado3" value="0" disabled="disabled"></td>
  </tr>
  <tr>
    <td class="desc">Veh&iacute;culo del Negocio: <span class="req">*</span></td>      
    <td><input name="af_suma_8" type="text" id="af_suma_8"  onKeyUp="javascript:sumas($('f1'),'af'); " value="0" class="required field text large" title="Ingrese la cantidad"></td>
    <td colspan="2" rowspan="4">&nbsp;</td>
  </tr>
  <tr>
    <td class="desc">Inmuebles del Negocio: <span class="req">*</span> </td>
    <td><input name="af_suma_9" type="text" id="af_suma_9"  onKeyUp="javascript:sumas($('f1'),'af'); " value="0" class="required field text large" title="Ingrese la cantidad"></td>
  </tr>
  <tr>
    <td class="desc">Otros Activos: <span class="req">*</span> </td>
    <td><input name="af_suma_10" type="text" id="af_suma_10"  onKeyUp="javascript:sumas($('f1'),'af'); " value="0" class="required field text large" title="Ingrese la cantidad"></td>
  </tr>
  <tr>
    <td class="desc1">Total Activo Fijo:</td>
    <td class="desc1"><input class="desc1" name="af_resultado" type="text" id="af_resultado"  value="0" disabled="disabled"></td>

  </tr>
  <tr>
    <td class="desc1">Total Activo:</td>
    <td><input  class="desc1" name="resultado" type="text" id="resultado" value="0" disabled="disabled"></td>
    <td class="desc1">Total Pasivo + Total Capital:</td>
    <td class="desc1"><input class="desc1" name="resultado4" type="text" id="resultado4" value="0" disabled="disabled"></td>
  </tr>
</table>  		
              	
</fieldset>    
</div>

    <div id="pie2">
    </div>

	<div id="gastos_negocio">
    <fieldset>
	<legend style="color:#1078B8;">C&aacute;lculo de Gastos del Negocio(Mensual)</legend>
     
     	<table>
  <tr>
    <td class="desc" >Sueldos y Prestaciones:<span class="req">*</span></td>
    <td><input name="gn_suma_1"  type="text" id="gn_suma_1" onKeyUp="javascript:sumas($('f1'),'gn');" value="0" class="required field text large" title="Ingrese la cantidad"></td>
  </tr>
  <tr>
    <td class="desc" >Rentas:<span class="req">*</span></td>
    <td><input name="gn_suma_2"  type="text" id="gn_suma_2" onKeyUp="javascript:sumas($('f1'),'gn');" value="0" class="required field text large" title="Ingrese la cantidad"></td>
  </tr>
  <tr>
    <td class="desc">Servicios (Agua+Luz+Tle&eacute;fono): <span class="req">*</span> </td>
    <td><input name="gn_suma_3" type="text" id="gn_suma_3" onKeyUp="javascript:sumas($('f1'),'gn');" value="0" class="required field text large" title="Ingrese la cantidad"></td>
  </tr>
  <tr>
    <td class="desc">Transporte: <span class="req">*</span> </td>
    <td><input name="gn_suma_4" type="text" id="gn_suma_4" onKeyUp="javascript:sumas($('f1'),'gn');" value="0" class="required field text large" title="Ingrese la cantidad"></td>
  </tr>
  <tr>
    <td class="desc">Cuota de Pr&eacute;stamos: <span class="req">*</span> </td>
    <td><input name="gn_suma_5" type="text" id="gn_suma_5" onKeyUp="javascript:sumas($('f1'),'gn');" value="0" class="required field text large" title="Ingrese la cantidad"></td>
  </tr>
  <tr>
    <td class="desc">Combustible: <span class="req">*</span> </td>
    <td><input name="gn_suma_6" type="text" id="gn_suma_6" onKeyUp="javascript:sumas($('f1'),'gn');" value="0" class="required field text large" title="Ingrese la cantidad"></td>
  </tr>
  <tr>
    <td class="desc">Impuestos: <span class="req">*</span> </td>
    <td><input name="gn_suma_7" type="text" id="gn_suma_7" onKeyUp="javascript:sumas($('f1'),'gn');" value="0" class="required field text large" title="Ingrese la cantidad"></td>
  </tr>
  <tr>
    <td class="desc">Mantenimiento(M&aacute;quinas, Locales): <span class="req">*</span> </td>
    <td><input name="gn_suma_8" type="text" id="gn_suma_8" onKeyUp="javascript:sumas($('f1'),'gn');" value="0" class="required field text large" title="Ingrese la cantidad"></td>
  </tr>
  <tr>
    <td class="desc">Otros: <span class="req">*</span> </td>
    <td><input name="gn_suma_9" type="text" id="gn_suma_9" onKeyUp="javascript:sumas($('f1'),'gn');" value="0" class="required field text large" title="Ingrese la cantidad"></td>
  </tr>
  <tr>
    <td class="desc1">Total de Gastos del Negocio:</td>
    <td class="desc1"><input class="desc1" name="gn_resultado" type="text" id="gn_resultado" value="0" disabled="disabled"></td>
  </tr>
</table>
		
	</fieldset>
	</div>  
    
    <div id="gastos_familia">
		<fieldset>
            <legend style="color:#1078B8;">Gasto Familiar(Mensual)</legend>
        
     	<table>
  <tr>
    <td class="desc">Alimentacion:<span class="req">*</span></td>
    <td><input name="gf_suma_1"  type="text" id="gf_suma_1" onKeyUp="javascript:sumas($('f1'),'gf');" value="0" class="required field text large" title="Ingrese la cantidad"></td>
  </tr>
  <tr>
    <td class="desc">Vivienda(Renta/Casa):<span class="req">*</span></td>
    <td><input name="gf_suma_2"  type="text" id="gf_suma_2" onKeyUp="javascript:sumas($('f1'),'gf');" value="0" class="required field text large" title="Ingrese la cantidad"></td>
  </tr>
  <tr>
  	<td class="desc">Transporte: <span class="req">*</span> </td>
  	<td><input name="gf_suma_3" type="text" id="gf_suma_3" onKeyUp="javascript:sumas($('f1'),'gf');" value="0" class="required field text large" title="Ingrese la cantidad"></td>
  </tr>
  <tr>
    <td class="desc">Educaci&oacute;n: <span class="req">*</span> </td>
    <td><input name="gf_suma_4" type="text" id="gf_suma_4" onKeyUp="javascript:sumas($('f1'),'gf');" value="0" class="required field text large" title="Ingrese la cantidad"></td>
  </tr>
  <tr>
    <td class="desc">Salud: <span class="req">*</span> </td>
    <td><input name="gf_suma_5" type="text" id="gf_suma_5" onKeyUp="javascript:sumas($('f1'),'gf');" value="0" class="required field text large" title="Ingrese la cantidad"></td>
  </tr>
  <tr>
    <td class="desc">Ropa: <span class="req">*</span> </td>
    <td><input name="gf_suma_6" type="text" id="gf_suma_6" onKeyUp="javascript:sumas($('f1'),'gf');" value="0" class="required field text large" title="Ingrese la cantidad"></td>
  </tr>
  <tr>       
    <td class="desc">Servicios (Agua+Luz+Tel&eacute;fono+Gas): <span class="req">*</span> </td>
    <td><input name="gf_suma_7" type="text" id="gf_suma_7" onKeyUp="javascript:sumas($('f1'),'gf');" value="0" class="required field text large" title="Ingrese la cantidad"></td>
  </tr>
  <tr>
    <td class="desc">Predial: <span class="req">*</span> </td>
    <td><input name="gf_suma_8" type="text" id="gf_suma_8" onKeyUp="javascript:sumas($('f1'),'gf');" value="0" class="required field text large" title="Ingrese la cantidad"></td>
  </tr>
  <tr>
    <td class="desc">Otros: <span class="req">*</span> </td>
    <td><input name="gf_suma_9" type="text" id="gf_suma_9" onKeyUp="javascript:sumas($('f1'),'gf');" value="0" class="required field text large" title="Ingrese la cantidad"></td>
  </tr>
  <tr>
    <td class="desc1">Total de Gastos Familiares:</td>
    <td class="desc1"><input class="desc1" name="gf_resultado" type="text" id="gf_resultado" value="0" disabled="disabled"></td>
  </tr>
</table>     
       </fieldset>   
    
    </div>         
 
  </div>        
      <div id="vista2" style="width:50%; float:left;">
      <script type="text/javascript">llamarasincrono("formulas.asp","vista2",100);</script>
      </div>
  <div id="bt">
              <br/>
     
           <br/>
    <input type="hidden" name="solicitud" id="solicitud" value="<%Response.Write(Request.QueryString("r")); %>" />          
    <input class="btn" type="submit" value="Ingresar" />
            
    </div>
</form>

			<script type="text/javascript">
                        var valid = new Validation('f1', {immediate : true, useTitles:true,onSubmit :true});
						validaciones();
            </script>	
</body>
</html>